<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: ddemlsvr.c 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00647_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">ddemlsvr.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="a00647.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a03629.html">precomp.h</a>&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#pragma hdrstop</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// globals</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="a00650.html#a285bd9fb68fc6751850f4171f6e518cd">   15</a></span>&#160;<a class="code" href="a02853.html">PSVR_INSTANCE_INFO</a> <a class="code" href="a00647.html#a285bd9fb68fc6751850f4171f6e518cd">psiiList</a> = NULL;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="a00650.html#a60c3faf394b47061f40e6c6e39c5f5ec">   17</a></span>&#160;<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> <a class="code" href="a00647.html#a60c3faf394b47061f40e6c6e39c5f5ec">xxxCsDdeInitialize</a>(</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;LPDWORD phInst,</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;HWND *phwndEvent,</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;LPDWORD pMonitorFlags,</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> afCmd,</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;PVOID pcii)</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;{</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <a class="code" href="a02853.html">PSVR_INSTANCE_INFO</a> psii;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <a class="code" href="a02449.html">LARGE_STRING</a> strClass;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160; </div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    CheckCritIn();</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    psii = (<a class="code" href="a00365.html#a220fc5ccf372311b02fbe4ac4ab35d31">PSVR_INSTANCE_INFO</a>)<a class="code" href="a00695.html#a857d137de0592e36caec4b6e0f5021cb">HMAllocObject</a>(<a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>(), NULL,</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;            TYPE_DDEACCESS, <span class="keyword">sizeof</span>(<a class="code" href="a00899.html#ae72c9c142d253805abc09ebec8767c25">SVR_INSTANCE_INFO</a>));</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="keywordflow">if</span> (psii == NULL) {</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        <span class="keywordflow">return</span> DMLERR_SYS_ERROR;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    }</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment">     * We have to tell CreateWindow that window is not created for the same</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment">     * module has the app, (CW_FLAGS_DIFFHMOD), so CreateWindow doesn&#39;t</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment">     * assign a hotkey to this window.  Other window are done in the</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="comment">     * client-server thunk</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <a class="code" href="a00365.html#a4dddfac60ddaa5a11f91719826b7b270">RtlInitLargeUnicodeString</a>((<a class="code" href="a02457.html">PLARGE_UNICODE_STRING</a>)&amp;strClass,</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;            <a class="code" href="a03257.html#a1a25b2f7b86446546fbe19a67e20fc2a">gpwszDDEMLEVENTCLASS</a>, (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)-1);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    Lock(&amp;(psii-&gt;<a class="code" href="a02853.html#aaf360baf59a422f99853d05627f85954">spwndEvent</a>), xxxCreateWindowEx(</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;            0,</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;            &amp;strClass,</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;            NULL,</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;            WS_POPUP | WS_CHILD,</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;            0, 0, 0, 0,</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;            (<a class="code" href="a02581.html">PWND</a>)NULL,</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;            (<a class="code" href="a02625.html">PMENU</a>)NULL,</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;            <a class="code" href="a03257.html#a4ae1966258068576cf2be4cc7356924b">hModuleWin</a>,</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;            NULL,</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;            CW_FLAGS_DIFFHMOD | VER31));</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordflow">if</span> (psii-&gt;<a class="code" href="a02853.html#aaf360baf59a422f99853d05627f85954">spwndEvent</a> == NULL) {</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <a class="code" href="a00695.html#a4e6ee8871cf6323bdd048608605667b1">HMFreeObject</a>((PVOID)psii);</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <span class="keywordflow">return</span> DMLERR_SYS_ERROR;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    }</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="comment">     * This GWL offset does NOT leave the critical section!</span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <a class="code" href="a03242.html#a5fe71cbbe99e9b25808ced78e3bc5b32">xxxSetWindowLong</a>(psii-&gt;<a class="code" href="a02853.html#aaf360baf59a422f99853d05627f85954">spwndEvent</a>, GWL_PSII, (LONG)psii, FALSE);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    psii-&gt;afCmd = 0;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    psii-&gt;pcii = pcii;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="comment">// Link into global list</span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    psii-&gt;next = <a class="code" href="a00647.html#a285bd9fb68fc6751850f4171f6e518cd">psiiList</a>;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <a class="code" href="a00647.html#a285bd9fb68fc6751850f4171f6e518cd">psiiList</a> = psii;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="comment">// Link into per-process list</span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    psii-&gt;<a class="code" href="a02853.html#a1e282ec8e4fc8b8fb6975e40e2430e64">nextInThisThread</a> = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>()-&gt;<a class="code" href="a02889.html#a285bd9fb68fc6751850f4171f6e518cd">psiiList</a>;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>()-&gt;<a class="code" href="a02889.html#a285bd9fb68fc6751850f4171f6e518cd">psiiList</a> = psii;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    *phInst = (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)PtoH(psii);</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    *phwndEvent = PtoH(psii-&gt;spwndEvent);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <a class="code" href="a00650.html#a59b0037ee57cbbcaedc19b92de4752ba">ChangeMonitorFlags</a>(psii, afCmd);        <span class="comment">// sets psii-&gt;afCmd;</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    *pMonitorFlags = <a class="code" href="a00650.html#aeedf4ff87347e042a697331c6ca6b469">MonitorFlags</a>;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordflow">return</span> DMLERR_NO_ERROR;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;}</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160; </div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="a00650.html#ac1165ade079a66b64d557e61b793a11c">   88</a></span>&#160;<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> <a class="code" href="a00647.html#ac1165ade079a66b64d557e61b793a11c">_CsUpdateInstance</a>(</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;HANDLE hInst,</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;LPDWORD pMonitorFlags,</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> afCmd)</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;{</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <a class="code" href="a02853.html">PSVR_INSTANCE_INFO</a> psii;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    CheckCritIn();</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    psii = (<a class="code" href="a00365.html#a220fc5ccf372311b02fbe4ac4ab35d31">PSVR_INSTANCE_INFO</a>)<a class="code" href="a00365.html#ab993ad57b0d56b4f9b64df02256b611c">HMValidateHandleNoRip</a>(hInst, TYPE_DDEACCESS);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keywordflow">if</span> (psii == NULL) {</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        <span class="keywordflow">return</span> DMLERR_INVALIDPARAMETER;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    }</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <a class="code" href="a00650.html#a59b0037ee57cbbcaedc19b92de4752ba">ChangeMonitorFlags</a>(psii, afCmd);</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    *pMonitorFlags = <a class="code" href="a00650.html#aeedf4ff87347e042a697331c6ca6b469">MonitorFlags</a>;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="keywordflow">return</span> DMLERR_NO_ERROR;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;}</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="a00650.html#a8bbf4a4463bc1dfe1c1bfa30d6a621ec">  110</a></span>&#160;BOOL <a class="code" href="a00647.html#a8bbf4a4463bc1dfe1c1bfa30d6a621ec">_CsDdeUninitialize</a>(</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;HANDLE hInst)</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;{</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <a class="code" href="a02853.html">PSVR_INSTANCE_INFO</a> psii;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    CheckCritIn();</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    psii = <a class="code" href="a00365.html#ab993ad57b0d56b4f9b64df02256b611c">HMValidateHandleNoRip</a>(hInst, TYPE_DDEACCESS);</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <span class="keywordflow">if</span> (psii == NULL) {</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    }</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <a class="code" href="a00647.html#a6f12136fa17bb8e8d480fecd7431a391">xxxDestroyThreadDDEObject</a>(<a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>(), psii);</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;}</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="a00650.html#a6f12136fa17bb8e8d480fecd7431a391">  127</a></span>&#160;VOID <a class="code" href="a00647.html#a6f12136fa17bb8e8d480fecd7431a391">xxxDestroyThreadDDEObject</a>(</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<a class="code" href="a02889.html">PTHREADINFO</a> pti,</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<a class="code" href="a02853.html">PSVR_INSTANCE_INFO</a> psii)</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;{</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <a class="code" href="a02853.html">PSVR_INSTANCE_INFO</a> psiiT;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    CheckCritIn();</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160; </div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <span class="keywordflow">if</span> (HMIsMarkDestroy(psii)) {</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    }</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160; </div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="comment">// Unlink psii from the global list.</span></div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="keywordflow">if</span> (psii == <a class="code" href="a00647.html#a285bd9fb68fc6751850f4171f6e518cd">psiiList</a>) {</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;        <a class="code" href="a00647.html#a285bd9fb68fc6751850f4171f6e518cd">psiiList</a> = psii-&gt;<a class="code" href="a02853.html#ad2a9221d4b6ea846e1234e053043f843">next</a>;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        <span class="keywordflow">for</span> (psiiT = <a class="code" href="a00647.html#a285bd9fb68fc6751850f4171f6e518cd">psiiList</a>; psiiT-&gt;<a class="code" href="a02853.html#ad2a9221d4b6ea846e1234e053043f843">next</a> != psii; psiiT = psiiT-&gt;<a class="code" href="a02853.html#ad2a9221d4b6ea846e1234e053043f843">next</a>) {</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;            <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(psiiT-&gt;<a class="code" href="a02853.html#ad2a9221d4b6ea846e1234e053043f843">next</a> != NULL);</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        }</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        psiiT-&gt;<a class="code" href="a02853.html#ad2a9221d4b6ea846e1234e053043f843">next</a> = psii-&gt;<a class="code" href="a02853.html#ad2a9221d4b6ea846e1234e053043f843">next</a>;</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    }</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <span class="comment">// psii-&gt;next = NULL;</span></div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <span class="comment">// Unlink psii from the per-process list.</span></div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordflow">if</span> (psii == pti-&gt;<a class="code" href="a02889.html#a285bd9fb68fc6751850f4171f6e518cd">psiiList</a>) {</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        pti-&gt;<a class="code" href="a02889.html#a285bd9fb68fc6751850f4171f6e518cd">psiiList</a> = psii-&gt;<a class="code" href="a02853.html#a1e282ec8e4fc8b8fb6975e40e2430e64">nextInThisThread</a>;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;        <span class="keywordflow">for</span> (psiiT = pti-&gt;<a class="code" href="a02889.html#a285bd9fb68fc6751850f4171f6e518cd">psiiList</a>; psiiT-&gt;<a class="code" href="a02853.html#a1e282ec8e4fc8b8fb6975e40e2430e64">nextInThisThread</a> != psii; psiiT = psiiT-&gt;<a class="code" href="a02853.html#a1e282ec8e4fc8b8fb6975e40e2430e64">nextInThisThread</a>) {</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;            <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(psiiT-&gt;<a class="code" href="a02853.html#a1e282ec8e4fc8b8fb6975e40e2430e64">nextInThisThread</a> != NULL);</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;        }</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        psiiT-&gt;<a class="code" href="a02853.html#a1e282ec8e4fc8b8fb6975e40e2430e64">nextInThisThread</a> = psii-&gt;<a class="code" href="a02853.html#a1e282ec8e4fc8b8fb6975e40e2430e64">nextInThisThread</a>;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    }</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="comment">// psii-&gt;nextInThisThread = NULL;</span></div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00695.html#aa3a7eff0cc4eabef6217efe2eba1e47f">HMMarkObjectDestroy</a>(psii)) {</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        <a class="code" href="a00635.html#a5a00338a3147879f7fa0ecb4a938cd8c">xxxDestroyWindow</a>(psii-&gt;<a class="code" href="a02853.html#aaf360baf59a422f99853d05627f85954">spwndEvent</a>);</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;        Unlock(&amp;(psii-&gt;<a class="code" href="a02853.html#aaf360baf59a422f99853d05627f85954">spwndEvent</a>));</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160; </div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        <a class="code" href="a00695.html#a4e6ee8871cf6323bdd048608605667b1">HMFreeObject</a>(psii);</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    }</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;}</div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa00650_html_a59b0037ee57cbbcaedc19b92de4752ba"><div class="ttname"><a href="a00650.html#a59b0037ee57cbbcaedc19b92de4752ba">ChangeMonitorFlags</a></div><div class="ttdeci">VOID ChangeMonitorFlags(PSVR_INSTANCE_INFO psii, DWORD afCmdNew)</div><div class="ttdef"><b>Definition:</b> <a href="a00677_source.html#l00062">event.c:62</a></div></div>
<div class="ttc" id="aa02853_html"><div class="ttname"><a href="a02853.html">tagSVR_INSTANCE_INFO</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02023">userk.h:2023</a></div></div>
<div class="ttc" id="aa00695_html_aa3a7eff0cc4eabef6217efe2eba1e47f"><div class="ttname"><a href="a00695.html#aa3a7eff0cc4eabef6217efe2eba1e47f">HMMarkObjectDestroy</a></div><div class="ttdeci">BOOL HMMarkObjectDestroy(PVOID pobj)</div><div class="ttdef"><b>Definition:</b> <a href="a00695_source.html#l00757">handtabl.c:757</a></div></div>
<div class="ttc" id="aa00695_html_a857d137de0592e36caec4b6e0f5021cb"><div class="ttname"><a href="a00695.html#a857d137de0592e36caec4b6e0f5021cb">HMAllocObject</a></div><div class="ttdeci">PVOID HMAllocObject(PTHREADINFO ptiOwner, PDESKTOP pdeskSrc, BYTE bType, DWORD size)</div><div class="ttdef"><b>Definition:</b> <a href="a00695_source.html#l00314">handtabl.c:314</a></div></div>
<div class="ttc" id="aa03257_html_a1a25b2f7b86446546fbe19a67e20fc2a"><div class="ttname"><a href="a03257.html#a1a25b2f7b86446546fbe19a67e20fc2a">gpwszDDEMLEVENTCLASS</a></div><div class="ttdeci">LPWSTR gpwszDDEMLEVENTCLASS</div><div class="ttdef"><b>Definition:</b> <a href="a03257_source.html#l00278">kernel/globals.c:278</a></div></div>
<div class="ttc" id="aa02449_html"><div class="ttname"><a href="a02449.html">_LARGE_STRING</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00266">user.h:266</a></div></div>
<div class="ttc" id="aa00647_html_ac1165ade079a66b64d557e61b793a11c"><div class="ttname"><a href="a00647.html#ac1165ade079a66b64d557e61b793a11c">_CsUpdateInstance</a></div><div class="ttdeci">DWORD _CsUpdateInstance(HANDLE hInst, LPDWORD pMonitorFlags, DWORD afCmd)</div><div class="ttdef"><b>Definition:</b> <a href="a00647_source.html#l00088">ddemlsvr.c:88</a></div></div>
<div class="ttc" id="aa00371_html_a162a73e20dfabca084a3ebb4581631a8"><div class="ttname"><a href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a></div><div class="ttdeci">#define UserAssert(exp)</div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00117">usersrv.h:117</a></div></div>
<div class="ttc" id="aa03629_html"><div class="ttname"><a href="a03629.html">precomp.h</a></div></div>
<div class="ttc" id="aa00695_html_a4e6ee8871cf6323bdd048608605667b1"><div class="ttname"><a href="a00695.html#a4e6ee8871cf6323bdd048608605667b1">HMFreeObject</a></div><div class="ttdeci">BOOL HMFreeObject(PVOID pobj)</div><div class="ttdef"><b>Definition:</b> <a href="a00695_source.html#l00575">handtabl.c:575</a></div></div>
<div class="ttc" id="aa02853_html_a1e282ec8e4fc8b8fb6975e40e2430e64"><div class="ttname"><a href="a02853.html#a1e282ec8e4fc8b8fb6975e40e2430e64">tagSVR_INSTANCE_INFO::nextInThisThread</a></div><div class="ttdeci">struct tagSVR_INSTANCE_INFO * nextInThisThread</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02026">userk.h:2026</a></div></div>
<div class="ttc" id="aa00257_html_a8315d2c807ba18ba9e528c40614b6173"><div class="ttname"><a href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a></div><div class="ttdeci">PTHREADINFO PtiCurrent(VOID)</div><div class="ttdef"><b>Definition:</b> <a href="a00263_source.html#l00526">winmgrc.c:526</a></div></div>
<div class="ttc" id="aa00899_html_ae72c9c142d253805abc09ebec8767c25"><div class="ttname"><a href="a00899.html#ae72c9c142d253805abc09ebec8767c25">SVR_INSTANCE_INFO</a></div><div class="ttdeci">struct tagSVR_INSTANCE_INFO SVR_INSTANCE_INFO</div></div>
<div class="ttc" id="aa00647_html_a8bbf4a4463bc1dfe1c1bfa30d6a621ec"><div class="ttname"><a href="a00647.html#a8bbf4a4463bc1dfe1c1bfa30d6a621ec">_CsDdeUninitialize</a></div><div class="ttdeci">BOOL _CsDdeUninitialize(HANDLE hInst)</div><div class="ttdef"><b>Definition:</b> <a href="a00647_source.html#l00110">ddemlsvr.c:110</a></div></div>
<div class="ttc" id="aa02889_html_a285bd9fb68fc6751850f4171f6e518cd"><div class="ttname"><a href="a02889.html#a285bd9fb68fc6751850f4171f6e518cd">tagTHREADINFO::psiiList</a></div><div class="ttdeci">PSVR_INSTANCE_INFO psiiList</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02320">userk.h:2320</a></div></div>
<div class="ttc" id="aa00365_html_a220fc5ccf372311b02fbe4ac4ab35d31"><div class="ttname"><a href="a00365.html#a220fc5ccf372311b02fbe4ac4ab35d31">PSVR_INSTANCE_INFO</a></div><div class="ttdeci">struct tagSVR_INSTANCE_INFO * PSVR_INSTANCE_INFO</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00054">user.h:54</a></div></div>
<div class="ttc" id="aa00650_html_aeedf4ff87347e042a697331c6ca6b469"><div class="ttname"><a href="a00650.html#aeedf4ff87347e042a697331c6ca6b469">MonitorFlags</a></div><div class="ttdeci">DWORD MonitorFlags</div><div class="ttdef"><b>Definition:</b> <a href="a00677_source.html#l00017">event.c:17</a></div></div>
<div class="ttc" id="aa02853_html_aaf360baf59a422f99853d05627f85954"><div class="ttname"><a href="a02853.html#aaf360baf59a422f99853d05627f85954">tagSVR_INSTANCE_INFO::spwndEvent</a></div><div class="ttdeci">PWND spwndEvent</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02028">userk.h:2028</a></div></div>
<div class="ttc" id="aa00647_html_a285bd9fb68fc6751850f4171f6e518cd"><div class="ttname"><a href="a00647.html#a285bd9fb68fc6751850f4171f6e518cd">psiiList</a></div><div class="ttdeci">PSVR_INSTANCE_INFO psiiList</div><div class="ttdef"><b>Definition:</b> <a href="a00647_source.html#l00015">ddemlsvr.c:15</a></div></div>
<div class="ttc" id="aa02625_html"><div class="ttname"><a href="a02625.html">tagMENU</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01992">user.h:1992</a></div></div>
<div class="ttc" id="aa00563_html_a074685e97e89d6aa2accdfcb82328699"><div class="ttname"><a href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a></div><div class="ttdeci">ddeml v[i&lt; inst &gt;][t&lt; type &gt;][hObj|pObj] Dump DDEML state information ddeml lists all ddeml instances for this process n ddeml t&lt; type &gt; lists all ddeml objects of the given type n n assumes link is first DWORD</div><div class="ttdef"><b>Definition:</b> <a href="a00563_source.html#l00175">exts.h:175</a></div></div>
<div class="ttc" id="aa02581_html"><div class="ttname"><a href="a02581.html">tagWND</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01388">user.h:1388</a></div></div>
<div class="ttc" id="aa00647_html_a6f12136fa17bb8e8d480fecd7431a391"><div class="ttname"><a href="a00647.html#a6f12136fa17bb8e8d480fecd7431a391">xxxDestroyThreadDDEObject</a></div><div class="ttdeci">VOID xxxDestroyThreadDDEObject(PTHREADINFO pti, PSVR_INSTANCE_INFO psii)</div><div class="ttdef"><b>Definition:</b> <a href="a00647_source.html#l00127">ddemlsvr.c:127</a></div></div>
<div class="ttc" id="aa00647_html_a60c3faf394b47061f40e6c6e39c5f5ec"><div class="ttname"><a href="a00647.html#a60c3faf394b47061f40e6c6e39c5f5ec">xxxCsDdeInitialize</a></div><div class="ttdeci">DWORD xxxCsDdeInitialize(LPDWORD phInst, HWND *phwndEvent, LPDWORD pMonitorFlags, DWORD afCmd, PVOID pcii)</div><div class="ttdef"><b>Definition:</b> <a href="a00647_source.html#l00017">ddemlsvr.c:17</a></div></div>
<div class="ttc" id="aa00365_html_a4dddfac60ddaa5a11f91719826b7b270"><div class="ttname"><a href="a00365.html#a4dddfac60ddaa5a11f91719826b7b270">RtlInitLargeUnicodeString</a></div><div class="ttdeci">VOID RtlInitLargeUnicodeString(PLARGE_UNICODE_STRING plstr, LPCWSTR psz, UINT cchLimit)</div><div class="ttdef"><b>Definition:</b> <a href="a00932_source.html#l00587">chartran.c:587</a></div></div>
<div class="ttc" id="aa00635_html_a5a00338a3147879f7fa0ecb4a938cd8c"><div class="ttname"><a href="a00635.html#a5a00338a3147879f7fa0ecb4a938cd8c">xxxDestroyWindow</a></div><div class="ttdeci">BOOL xxxDestroyWindow(PWND pwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00635_source.html#l01273">createw.c:1273</a></div></div>
<div class="ttc" id="aa00365_html_ab993ad57b0d56b4f9b64df02256b611c"><div class="ttname"><a href="a00365.html#ab993ad57b0d56b4f9b64df02256b611c">HMValidateHandleNoRip</a></div><div class="ttdeci">PVOID FASTCALL HMValidateHandleNoRip(HANDLE h, BYTE btype)</div><div class="ttdef"><b>Definition:</b> <a href="a03752_source.html#l00303">rtl/wow.c:303</a></div></div>
<div class="ttc" id="aa03608_html_afd1a0e78d1f88954d93e48ab3821781f"><div class="ttname"><a href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a></div><div class="ttdeci">typedef UINT(FAR WINAPI *MSGSOUNDPROC)()</div></div>
<div class="ttc" id="aa03242_html_a5fe71cbbe99e9b25808ced78e3bc5b32"><div class="ttname"><a href="a03242.html#a5fe71cbbe99e9b25808ced78e3bc5b32">xxxSetWindowLong</a></div><div class="ttdeci">DWORD xxxSetWindowLong(PWND pwnd, int index, DWORD dwData, BOOL bAnsi)</div><div class="ttdef"><b>Definition:</b> <a href="a03242_source.html#l00256">kernel/getset.c:256</a></div></div>
<div class="ttc" id="aa02889_html"><div class="ttname"><a href="a02889.html">tagTHREADINFO</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02260">userk.h:2260</a></div></div>
<div class="ttc" id="aa02853_html_ad2a9221d4b6ea846e1234e053043f843"><div class="ttname"><a href="a02853.html#ad2a9221d4b6ea846e1234e053043f843">tagSVR_INSTANCE_INFO::next</a></div><div class="ttdeci">struct tagSVR_INSTANCE_INFO * next</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02025">userk.h:2025</a></div></div>
<div class="ttc" id="aa02457_html"><div class="ttname"><a href="a02457.html">_LARGE_UNICODE_STRING</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00280">user.h:280</a></div></div>
<div class="ttc" id="aa03257_html_a4ae1966258068576cf2be4cc7356924b"><div class="ttname"><a href="a03257.html#a4ae1966258068576cf2be4cc7356924b">hModuleWin</a></div><div class="ttdeci">HANDLE hModuleWin</div><div class="ttdef"><b>Definition:</b> <a href="a03257_source.html#l00324">kernel/globals.c:324</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_2a0a56546b70a0973705719e6a88eab3.html">kernel</a></li><li class="navelem"><a class="el" href="a00647.html">ddemlsvr.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
